import { App } from "vue";
import { useUserStore } from "@/store/userStore";

// 初始化 权限的自定义指令 permisstion
export const regPermisstion = (app: App<Element>) => {
  app.directive('permisstion', {
    mounted(el, binding) {
      console.log(el, binding.value);   // dom元素,   绑定值  addUser

    }
  })
}